To set the movie's looping mode to palindrome, you add an action that is triggered when the key frame is loaded, as shown in Listing 3-9 . This action is triggered every time the key frame is reloaded.
Listing 9 Adding more actions to other sprites
loopingFlags = loopTimeBase | palindromeLoopTimeBase;
FailOSErr( AddMovieSetLoopingFlagsAction( sample,
kParentAtomIsContainer,
kQTEventFrameLoaded, loopingFlags ) )
| Previous | Chapter Contents | Chapter Top | Next |